using System;
using System.Data;

namespace uk.co.tonyditchfield.tort.attributes
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public sealed class DBObjectAttribute : Attribute
    {
        public DBObjectAttribute() { }

        // TODO: Expand on this to allow tort-ql for none table to concreate class mappings....
        public DBObjectAttribute(string tableName) 
        {
            TableName = tableName;
        }

        /// <summary>
        /// Allows the implementation of whatever sql the developer requires
        /// </summary>
        /// <param name="sql">The sql command to execute</param>
        /// <param name="sqlQueryType">The type of database interaction. Update, Select, Insert, Delete</param>
        public DBObjectAttribute(IDbCommand sqlCommand, attributeproperties.SQLQueryType sqlQueryType) 
        { 
            
        }

        private string tableName;
        public string TableName
        {
            get { return tableName; }
            set { tableName = value; }
        }
    }
}
